import dayjs from 'dayjs'

export default (date, format = 'YYYY-MM-DD HH:mm') => dayjs(date).format(format)
